<!--增减开始-->
<script type="text/javascript">
function AddRow(tab1,delbutton1){
    //添加一行
    var i = document.getElementById(tab1).rows.length;
    var newTr = document.getElementById(tab1).insertRow();
    var moreNum = {$more_num} + i;
    //添加列
    var newTd0 = newTr.insertCell();
    newTd0.innerHTML =  '<div class="float-left mr-2 mt-1"><input type="text" name="sub_title[]" placeholder="{:lang('v_attribute_name')}" value="" class="input" size="15" /></div>\n\
                        <div class="float-left mr-2 mt-1">\n\
                            <textarea name="sub_attvalue[]" rows="1" class="form-control" data-placeholder="{:lang('v_oneline_onevalue')} {:lang('v_oneline_onevalue')}"></textarea>\n\
                        </div>\n\
                        <div class="float-left mr-2 mt-1"><select name="fieldtype[]" class="form-control">\n\
                        <option value="radio">{:lang('v_method_select')}</option>\n\
                        <option value="checkbox">{:lang('v_method_checkbox')}</option>\n\
                        <option value="text">{:lang('v_method_text')}</option>\n\
                        <option value="textarea">{:lang('v_method_textarea')}</option>\n\
                        </select></div>\n\
                        <div class="float-left mr-2 mt-1"><input type="text" name="sub_sequence[]" placeholder="{:lang('v_sequence')}" value="0" class="form-control" maxlength="10" size="6" /></div>\n\
                        <div class="float-left mt-1"><label class="btn btn-danger"><input type="checkbox" class="d-none" id="delbutton1" onClick="javascript:DelRow(\'tab1\',\'delbutton1\');" /><i class="fa fa-trash"></i> {:lang('v_delete_this')}</label></div><input type="hidden" name="sub_id[]" value="">';
}
</script>
{include file="public/js_del_row" /}
<!--增减结束-->